package com.yyb.utils.neteaseim.bean.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.jiuqian.xdpx.core.base.BaseModel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 网易云通信参数实体类
 * 
 * @author  Marshal
 * @date  2018-03-20
 * 具体参考：http://dev.netease.im/docs/product/IM%E5%8D%B3%E6%97%B6%E9%80%9A%E8%AE%AF/%E6%9C%8D%E5%8A%A1%E7%AB%AFAPI%E6%96%87%E6%A1%A3/%E7%BD%91%E6%98%93%E4%BA%91%E9%80%9A%E4%BF%A1ID
 */
@TableName("ne_im_accid")
@ApiModel("【即时通讯】用户信息")
public class NeImAccid extends BaseModel {
	
	private static final long serialVersionUID = -1009150086024464037L;


    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("关联用户id")
    @TableField("user_id")
    private Long userId;

	/**
	 *  网易云通信ID
	 */
    @ApiModelProperty("网易云通信ID")
    @TableField("accid")
	private String accid;

    /**
     * 网易云通信ID可以指定登录token值，最大长度128字符，
     * 并更新，如果未指定，会自动生成token，并在创建成功后返回
     */
    @ApiModelProperty("token值")
    @TableField("token")
    private String token;


    /** --------------------------  冗余数据 -------------------------------------*/
//
//    @ApiModelProperty("用户账号(accid)")
//	@TableField(exist = false)
//    private String account;

//    @ApiModelProperty("用户聊天昵称")
//    @TableField(exist = false)
//	private String name;

    public NeImAccid(){}

    public NeImAccid(Long userId, String accid){
		this.userId = userId;
		this.accid = accid;
	}

	public NeImAccid(Long userId, String accid, String token) {
		this.userId = userId;
		this.accid = accid;
		this.token = token;
	}


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getAccid() {
		return accid;
	}

	public void setAccid(String accid) {
		this.accid = accid;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

//	public String getAccount() {
//		return account;
//	}
//
//	public void setAccount(String account) {
//		this.account = account;
//	}
//
//	public String getName() {
//		return name;
//	}
//
//	public void setName(String name) {
//		this.name = name;
//	}
}





























